package com.zjb.wxlisener.service.impl;

import com.zjb.wxlisener.mapper.CollectMapper;
import com.zjb.wxlisener.service.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectServiceimpl implements CollectService {
    @Autowired
    CollectMapper collectMapper;
    @Override
    public Boolean likeStatus(Integer id) {
        Boolean status = collectMapper.likeStatus(id);
        return status;
    }

    @Override
    public void uptateCounts(Integer id,Integer musiclikes) {
        collectMapper.updateCounts(id,musiclikes);
    }

    @Override
    public void addUserCollect(Integer id, String openid) {
        collectMapper.addUserCollect(id,openid);
    }
}
